The variable weekday already seems to be declared on line 3. Consider using another variable name or omitting the var keyword.
This check looks for variables that are declared in multiple lines. There
may be several reasons for this.
In the simplest case the variable name was reused by mistake. This may lead to
very hard to locate bugs.
If you want to reuse a variable for another purpose, consider declaring it
at or near the top of your function and just assigning to it subsequently so
it is always declared.
The variable monthname already seems to be declared on line 5. Consider using another variable name or omitting the var keyword.
This check looks for variables that are declared in multiple lines. There
may be several reasons for this.
In the simplest case the variable name was reused by mistake. This may lead to
very hard to locate bugs.
If you want to reuse a variable for another purpose, consider declaring it
at or near the top of your function and just assigning to it subsequently so
it is always declared.
The variable t seems to be never declared. Assigning variables without defining them first makes them global. If this was intended, consider making it explicit like using window.t.
Loading history...
19
}
20
// function checkTime to add a zero in front of numbers<10